<template>
  <a-locale-provider :locale="locale">
    <div id="app">
      <router-view/>
    </div>
  </a-locale-provider>
</template>

<script>
import { AppDeviceEnquire } from '@/utils/mixin'
import { mapState } from 'vuex'

export default {
  mixins: [AppDeviceEnquire],
  computed: {
    ...mapState({
      // 当前区域语言对象
      locale: state => state.i18n.locale
    })
  },
  data () {
    return {
    }
  },
  mounted () {

  }
}
</script>
<style>
  #app {
    height: 100%;
  }
</style>
